FROM java:8
# 设置时区
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo 'Asia/Shanghai' >/etc/timezone

ADD ./target/security-demo.jar application.jar

RUN bash -c 'touch /application.jar'

EXPOSE 8080

ENTRYPOINT ["java","-jar","/application.jar","-Duser.timezone=Asia/Shanghai","--server.port=8080"]